'use strict';
const db = uniCloud.database()

exports.add = async (data) => {
  const collection = db.collection('addlog');

    const res = await collection.add({
      name: data.name,
      type_user: data.type_user,
    })
    return {
      code: global.successCode,
      msg: '提交成功'
    }
}
